package Code.InnerClass.Member;

import java.awt.*;
import java.awt.desktop.OpenURIEvent;

public class Test {
    public static void main(String[] args) {

        //创建内部类的对象
       //Outer.Inner oi = new Outer().new Inner();

        //私有的话用方法创建
        Outer outer = new Outer();
       // Outer.Inner oi= outer.getInstance();  报错
        //用父类类型,形成多态
        //Object oi = outer.getInstance();
        //System.out.println(outer.getInstance());


        //创建内部内对象，并调用里面的方法
        Outer o = new Outer();
        Outer.Inner oi = o.getInstance();

        oi.show();

    }
}
